package io.renren.modules.tenant.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.tenant.dao.TenantDao;
import io.renren.modules.tenant.entity.TenantEntity;
import io.renren.modules.tenant.service.TenantService;


@Service("tenantService")
public class TenantServiceImpl extends ServiceImpl<TenantDao, TenantEntity> implements TenantService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<TenantEntity> page = this.selectPage(
                new Query<TenantEntity>(params).getPage(),
                new EntityWrapper<TenantEntity>()
        );

        return new PageUtils(page);
    }

}
